/*
 * @Author: Wang Yang
 * @Date: 2021-06-01 17:08:25
 * @LastEditors: Wang Yang
 * @LastEditTime: 2021-06-01 17:20:13
 * @Description: 路由入口
 */
import { createRouter, createWebHistory } from "vue-router";

export default createRouter({
  history: createWebHistory(),
  // 路由地址
  routes: [
    { path: "/", name: "Home", component: () => import("@/views/home.vue") },
    {
      path: "/vuex",
      name: "Vuex",
      component: () => import("@/views/vuex.vue")
    },
    {
      path: "/axios",
      name: "Axios",
      component: () => import("@/views/axios.vue") // 懒加载组件
    }
  ]
});
